<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <title>添加课程</title>
    <link rel="stylesheet" href="../../layui/css/layui.css" media="all" />
</head>
<style>
    form{
        width: 400px;
        position: absolute;
        top: 10px;
        left: 50%;
        margin-left: -200px;
    }
</style>
<body>
<form class="layui-form" lay-filter="room">
    <input type="hidden" name="id">
    <div class="layui-form-item">
        <label class="layui-form-label">教室代码</label>
        <div class="layui-input-block">
            <input type="text" name="roomCode" id="roomCode" required  lay-verify="required|code" placeholder="请输入代码" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">教室地址</label>
        <div class="layui-input-block">
            <input type="text" name="site" id="site" required  lay-verify="required" placeholder="请输入地址" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">教室类型</label>
        <div class="layui-input-block">
            <select name="roomType" id="roomType" lay-verify="required">
                <option value="">请选择类别</option>
                <option value="1">大教室</option>
                <option value="2">中教室</option>
                <option value="3">小教室</option>
                <option value="4">实验室</option>
                <option value="5">其它</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">容纳人数</label>
        <div class="layui-input-block">
            <input type="number" min="10" max="100" name="roomNumber" id="roomNumber" required  lay-verify="required|number|num" placeholder="请输入人数" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">开放时间</label>
        <div class="layui-input-block">
            <select name="openTime" id="openTime" lay-verify="required">
                <option value="">请选择时间段</option>
                <option value="1">周一至周五</option>
                <option value="2">周六周日</option>
                <option value="3">全周</option>
            </select>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">教室状态</label>
        <div class="layui-input-block">
            <input type="radio" name="state" value="0" title="正常">
            <input type="radio" name="state" value="1" title="维护">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <button class="layui-btn" lay-submit lay-filter="submit">提交</button>
            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
        </div>
    </div>
</form>
</body>
<script type="text/javascript" src="../../layui/layui.js"></script>
<script type="text/javascript" src="../../js/add/addUtil.js"></script>
<script type="text/javascript" src="../../js/add/roomAdd.js"></script>
</html>